<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
AbstractRegionPainter (Sea Glass Look and Feel for Swing 0.2 API)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="AbstractRegionPainter (Sea Glass Look and Feel for Swing 0.2 API)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractRegionPainter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractCommonColorsPainter.CommonControlState.html" title="enum in com.seaglasslookandfeel.painter"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FocusType.html" title="enum in com.seaglasslookandfeel.painter"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/seaglasslookandfeel/painter/AbstractRegionPainter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractRegionPainter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.seaglasslookandfeel.painter</FONT>
<BR>
Class AbstractRegionPainter</H2>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.seaglasslookandfeel.painter.AbstractRegionPainter</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;, <A HREF="../../../com/sun/java/swing/Painter.html" title="interface in com.sun.java.swing">Painter</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;</DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/seaglasslookandfeel/painter/AbstractCommonColorsPainter.html" title="class in com.seaglasslookandfeel.painter">AbstractCommonColorsPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ArrowButtonPainter.html" title="class in com.seaglasslookandfeel.painter">ArrowButtonPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ButtonPainter.html" title="class in com.seaglasslookandfeel.painter">ButtonPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ContentPanePainter.html" title="class in com.seaglasslookandfeel.painter">ContentPanePainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/DesktopIconPainter.html" title="class in com.seaglasslookandfeel.painter">DesktopIconPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/DesktopPanePainter.html" title="class in com.seaglasslookandfeel.painter">DesktopPanePainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/FileChooserPainter.html" title="class in com.seaglasslookandfeel.painter">FileChooserPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/FrameAndRootPainter.html" title="class in com.seaglasslookandfeel.painter">FrameAndRootPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/MenuBarMenuPainter.html" title="class in com.seaglasslookandfeel.painter">MenuBarMenuPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/MenuItemPainter.html" title="class in com.seaglasslookandfeel.painter">MenuItemPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/OptionPanePainter.html" title="class in com.seaglasslookandfeel.painter">OptionPanePainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/PopupMenuPainter.html" title="class in com.seaglasslookandfeel.painter">PopupMenuPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/PopupMenuSeparatorPainter.html" title="class in com.seaglasslookandfeel.painter">PopupMenuSeparatorPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ScrollBarButtonPainter.html" title="class in com.seaglasslookandfeel.painter">ScrollBarButtonPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ScrollBarTrackPainter.html" title="class in com.seaglasslookandfeel.painter">ScrollBarTrackPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ScrollPanePainter.html" title="class in com.seaglasslookandfeel.painter">ScrollPanePainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/SearchFieldIconPainter.html" title="class in com.seaglasslookandfeel.painter">SearchFieldIconPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/SplitPanePainter.html" title="class in com.seaglasslookandfeel.painter">SplitPanePainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TabbedPaneTabAreaPainter.html" title="class in com.seaglasslookandfeel.painter">TabbedPaneTabAreaPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TabbedPaneTabCloseButtonPainter.html" title="class in com.seaglasslookandfeel.painter">TabbedPaneTabCloseButtonPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TableHeaderPainter.html" title="class in com.seaglasslookandfeel.painter">TableHeaderPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TitlePaneButtonPainter.html" title="class in com.seaglasslookandfeel.painter">TitlePaneButtonPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ToolBarPainter.html" title="class in com.seaglasslookandfeel.painter">ToolBarPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ToolBarToggleButtonPainter.html" title="class in com.seaglasslookandfeel.painter">ToolBarToggleButtonPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/ToolTipPainter.html" title="class in com.seaglasslookandfeel.painter">ToolTipPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TreeCellEditorPainter.html" title="class in com.seaglasslookandfeel.painter">TreeCellEditorPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TreeCellPainter.html" title="class in com.seaglasslookandfeel.painter">TreeCellPainter</A>, <A HREF="../../../com/seaglasslookandfeel/painter/TreePainter.html" title="class in com.seaglasslookandfeel.painter">TreePainter</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>AbstractRegionPainter</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;</DL>
</PRE>

<P>
Convenient base class for defining Painter instances for rendering a region
 or component in Sea Glass.

 <p>Based on Nimbus's AbstractRegionPainter by Jasper Potts and Richard Bair.
 This was package local.</p>
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FocusType.html" title="enum in com.seaglasslookandfeel.painter">AbstractRegionPainter.FocusType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Focus ring color state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Four color gradients.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.PaintContext.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.PaintContext</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A class encapsulating state useful when painting.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.ThreeColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.ThreeColors</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Three color gradients.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Two color gradients.</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Insets.html?is-external=true" title="class or interface in java.awt">Insets</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#focusInsets">focusInsets</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insets used for positioning the control border in order to leave enough
 room for the focus indicator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/util/ShapeGenerator.html" title="class in com.seaglasslookandfeel.painter.util">ShapeGenerator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#shapeGenerator">shapeGenerator</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The generator for almost all of the shapes we use to draw controls.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#AbstractRegionPainter()">AbstractRegionPainter</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new AbstractRegionPainter</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#configureGraphics(java.awt.Graphics2D)">configureGraphics</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A>&nbsp;g)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configures the given Graphics2D.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/LinearGradientPaint.html?is-external=true" title="class or interface in java.awt">LinearGradientPaint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#createGradient(float, float, float, float, float[], java.awt.Color[])">createGradient</A></B>(float&nbsp;x1,
               float&nbsp;y1,
               float&nbsp;x2,
               float&nbsp;y2,
               float[]&nbsp;midpoints,
               <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>[]&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given parameters for creating a LinearGradientPaint, this method will
 create and return a linear gradient paint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#createHorizontalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)">createHorizontalGradient</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                         <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a simple horizontal gradient using the shape for bounds and the
 colors for top, two middle, and bottom colors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#createHorizontalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)">createHorizontalGradient</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                         <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a simple horizontal gradient using the shape for bounds and the
 colors for top and bottom colors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/RadialGradientPaint.html?is-external=true" title="class or interface in java.awt">RadialGradientPaint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#createRadialGradient(float, float, float, float[], java.awt.Color[])">createRadialGradient</A></B>(float&nbsp;x,
                     float&nbsp;y,
                     float&nbsp;r,
                     float[]&nbsp;midpoints,
                     <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>[]&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given parameters for creating a RadialGradientPaint, this method will
 create and return a radial gradient paint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#createVerticalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)">createVerticalGradient</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                       <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a simple vertical gradient using the shape for bounds and the
 colors for top, two middle, and bottom colors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#createVerticalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)">createVerticalGradient</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                       <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a simple vertical gradient using the shape for bounds and the
 colors for top and bottom colors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#decodeColor(java.awt.Color, java.awt.Color, float)">decodeColor</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color1,
            <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color2,
            float&nbsp;midPoint)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes and returns a color, which is derived from a offset between two
 other colors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#decodeColor(java.lang.String)">decodeColor</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes and returns a base color in UI defaults.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#decodeColor(java.lang.String, float, float, float, int)">decodeColor</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key,
            float&nbsp;hOffset,
            float&nbsp;sOffset,
            float&nbsp;bOffset,
            int&nbsp;aOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes and returns a color, which is derived from a base color in UI
 defaults.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#deriveARGB(java.awt.Color, java.awt.Color, float)">deriveARGB</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color1,
           <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color2,
           float&nbsp;midPoint)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Derives the ARGB value for a color based on an offset between two other
 colors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#deriveColor(java.awt.Color, float, float, float, int)">deriveColor</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;src,
            float&nbsp;hOffset,
            float&nbsp;sOffset,
            float&nbsp;bOffset,
            int&nbsp;aOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Derive and returns a color, which is based on an existing color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)">desaturate</A></B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new FourColors object with each color desaturated using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(java.awt.Color)"><CODE>desaturate(Color)</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)">desaturate</A></B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new TwoColors object with each color desaturated using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(java.awt.Color)"><CODE>desaturate(Color)</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(java.awt.Color)">desaturate</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new color with the saturation cut to one third the original,
 and the brightness moved one third closer to white.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)">disable</A></B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new FourColors object with each color disabled using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(java.awt.Color)"><CODE>disable(Color)</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)">disable</A></B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new TwoColors object with each color disabled using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(java.awt.Color)"><CODE>disable(Color)</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(java.awt.Color)">disable</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new color with the alpha of the old color cut in half.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#doPaint(java.awt.Graphics2D, javax.swing.JComponent, int, int, java.lang.Object[])">doPaint</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A>&nbsp;g,
        <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c,
        int&nbsp;width,
        int&nbsp;height,
        <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;extendedCacheKeys)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actually performs the painting operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#getComponentColor(javax.swing.JComponent, java.lang.String, java.awt.Color, float, float, int)">getComponentColor</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c,
                  <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;property,
                  <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;defaultColor,
                  float&nbsp;saturationOffset,
                  float&nbsp;brightnessOffset,
                  int&nbsp;alphaOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a color property from the given JComponent.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#getExtendedCacheKeys(javax.swing.JComponent)">getExtendedCacheKeys</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get any extra attributes which the painter implementation would like to
 include in the image cache lookups.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#getFocusPaint(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.FocusType, boolean)">getFocusPaint</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
              <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FocusType.html" title="enum in com.seaglasslookandfeel.painter">AbstractRegionPainter.FocusType</A>&nbsp;focusType,
              boolean&nbsp;useToolBarFocus)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the paint to use for a focus ring.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract &nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.PaintContext.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.PaintContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#getPaintContext()">getPaintContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the PaintContext for this painting operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#isInToolBar(javax.swing.JComponent)">isInToolBar</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if we should paint focus using light colors on a blue
 toolbar.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#paint(java.awt.Graphics2D, javax.swing.JComponent, int, int)">paint</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A>&nbsp;g,
      <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c,
      int&nbsp;w,
      int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renders to the given <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt"><CODE>Graphics2D</CODE></A>.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="shapeGenerator"><!-- --></A><H3>
shapeGenerator</H3>
<PRE>
protected <A HREF="../../../com/seaglasslookandfeel/painter/util/ShapeGenerator.html" title="class in com.seaglasslookandfeel.painter.util">ShapeGenerator</A> <B>shapeGenerator</B></PRE>
<DL>
<DD>The generator for almost all of the shapes we use to draw controls.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="focusInsets"><!-- --></A><H3>
focusInsets</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Insets.html?is-external=true" title="class or interface in java.awt">Insets</A> <B>focusInsets</B></PRE>
<DL>
<DD>Insets used for positioning the control border in order to leave enough
 room for the focus indicator.
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="AbstractRegionPainter()"><!-- --></A><H3>
AbstractRegionPainter</H3>
<PRE>
protected <B>AbstractRegionPainter</B>()</PRE>
<DL>
<DD>Create a new AbstractRegionPainter
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="isInToolBar(javax.swing.JComponent)"><!-- --></A><H3>
isInToolBar</H3>
<PRE>
protected boolean <B>isInToolBar</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c)</PRE>
<DL>
<DD>Returns true if we should paint focus using light colors on a blue
 toolbar.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="paint(java.awt.Graphics2D, javax.swing.JComponent, int, int)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A>&nbsp;g,
                        <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c,
                        int&nbsp;w,
                        int&nbsp;h)</PRE>
<DL>
<DD>Renders to the given <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt"><CODE>Graphics2D</CODE></A>. The supplied graphics context
 may be modified - it's state need not be restored upon completion of
 painting.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/seaglasslookandfeel/painter/SeaGlassPainter.html#paint(java.awt.Graphics2D, T, int, int)">paint</A></CODE> in interface <CODE><A HREF="../../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;</CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/sun/java/swing/Painter.html#paint(java.awt.Graphics2D, T, int, int)">paint</A></CODE> in interface <CODE><A HREF="../../../com/sun/java/swing/Painter.html" title="interface in com.sun.java.swing">Painter</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context to paint into. It's state need not be
            restored. Will not be null.<DD><CODE>c</CODE> - the object to be painted.<DD><CODE>w</CODE> - the width within the object to paint.<DD><CODE>h</CODE> - the height within the object to paint.</DL>
</DD>
</DL>
<HR>

<A NAME="getExtendedCacheKeys(javax.swing.JComponent)"><!-- --></A><H3>
getExtendedCacheKeys</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] <B>getExtendedCacheKeys</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c)</PRE>
<DL>
<DD>Get any extra attributes which the painter implementation would like to
 include in the image cache lookups. This is checked for every call of the
 paint(g, c, w, h) method.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The component on the current paint call
<DT><B>Returns:</B><DD>Array of extra objects to be included in the cache key</DL>
</DD>
</DL>
<HR>

<A NAME="getPaintContext()"><!-- --></A><H3>
getPaintContext</H3>
<PRE>
protected abstract <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.PaintContext.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.PaintContext</A> <B>getPaintContext</B>()</PRE>
<DL>
<DD><p>Gets the PaintContext for this painting operation. This method is
 called on every paint, and so should be fast and produce no garbage. The
 PaintContext contains information such as cache hints. It also contains
 data necessary for decoding points at runtime, such as the stretching
 insets, the canvas size at which the encoded points were defined, and
 whether the stretching insets are inverted.</p>

 <p>This method allows for subclasses to package the painting of different
 states with possibly different canvas sizes, etc, into one
 AbstractRegionPainter implementation.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>a PaintContext associated with this paint operation.</DL>
</DD>
</DL>
<HR>

<A NAME="getFocusPaint(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.FocusType, boolean)"><!-- --></A><H3>
getFocusPaint</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> <B>getFocusPaint</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                           <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FocusType.html" title="enum in com.seaglasslookandfeel.painter">AbstractRegionPainter.FocusType</A>&nbsp;focusType,
                           boolean&nbsp;useToolBarFocus)</PRE>
<DL>
<DD>Get the paint to use for a focus ring.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the shape to paint.<DD><CODE>focusType</CODE> - the focus type.<DD><CODE>useToolBarFocus</CODE> - whether we should use the colors for a toolbar control.
<DT><B>Returns:</B><DD>the paint to use to paint the focus ring.</DL>
</DD>
</DL>
<HR>

<A NAME="configureGraphics(java.awt.Graphics2D)"><!-- --></A><H3>
configureGraphics</H3>
<PRE>
protected void <B>configureGraphics</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A>&nbsp;g)</PRE>
<DL>
<DD><p>Configures the given Graphics2D. Often, rendering hints or
 compositiing rules are applied to a Graphics2D object prior to painting,
 which should affect all of the subsequent painting operations. This
 method provides a convenient hook for configuring the Graphics object
 prior to rendering, regardless of whether the render operation is
 performed to an intermediate buffer or directly to the display.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - The Graphics2D object to configure. Will not be null.</DL>
</DD>
</DL>
<HR>

<A NAME="doPaint(java.awt.Graphics2D, javax.swing.JComponent, int, int, java.lang.Object[])"><!-- --></A><H3>
doPaint</H3>
<PRE>
protected abstract void <B>doPaint</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A>&nbsp;g,
                                <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c,
                                int&nbsp;width,
                                int&nbsp;height,
                                <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;extendedCacheKeys)</PRE>
<DL>
<DD>Actually performs the painting operation. Subclasses must implement this
 method. The graphics object passed may represent the actual surface being
 rendererd to, or it may be an intermediate buffer. It has also been
 pre-translated. Simply render the component as if it were located at 0, 0
 and had a width of <code>width</code> and a height of <code>height</code>
 . For performance reasons, you may want to read the clip from the
 Graphics2D object and only render within that space.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - The Graphics2D surface to paint to<DD><CODE>c</CODE> - The JComponent related to the drawing event. For
                          example, if the region being rendered is Button,
                          then <code>c</code> will be a JButton. If the
                          region being drawn is ScrollBarSlider, then the
                          component will be JScrollBar. This value may be
                          null.<DD><CODE>width</CODE> - The width of the region to paint. Note that in
                          the case of painting the foreground, this value
                          may differ from c.getWidth().<DD><CODE>height</CODE> - The height of the region to paint. Note that in
                          the case of painting the foreground, this value
                          may differ from c.getHeight().<DD><CODE>extendedCacheKeys</CODE> - The result of the call to getExtendedCacheKeys()</DL>
</DD>
</DL>
<HR>

<A NAME="decodeColor(java.lang.String)"><!-- --></A><H3>
decodeColor</H3>
<PRE>
protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>decodeColor</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key)</PRE>
<DL>
<DD>Decodes and returns a base color in UI defaults.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - A key corresponding to the value in the UI Defaults table of
             UIManager where the base color is defined
<DT><B>Returns:</B><DD>The base color.</DL>
</DD>
</DL>
<HR>

<A NAME="decodeColor(java.lang.String, float, float, float, int)"><!-- --></A><H3>
decodeColor</H3>
<PRE>
protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>decodeColor</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key,
                                  float&nbsp;hOffset,
                                  float&nbsp;sOffset,
                                  float&nbsp;bOffset,
                                  int&nbsp;aOffset)</PRE>
<DL>
<DD>Decodes and returns a color, which is derived from a base color in UI
 defaults.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - A key corresponding to the value in the UI Defaults table
                 of UIManager where the base color is defined<DD><CODE>hOffset</CODE> - The hue offset used for derivation.<DD><CODE>sOffset</CODE> - The saturation offset used for derivation.<DD><CODE>bOffset</CODE> - The brightness offset used for derivation.<DD><CODE>aOffset</CODE> - The alpha offset used for derivation. Between 0...255
<DT><B>Returns:</B><DD>The derived color, whos color value will change if the parent
         uiDefault color changes.</DL>
</DD>
</DL>
<HR>

<A NAME="deriveColor(java.awt.Color, float, float, float, int)"><!-- --></A><H3>
deriveColor</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>deriveColor</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;src,
                            float&nbsp;hOffset,
                            float&nbsp;sOffset,
                            float&nbsp;bOffset,
                            int&nbsp;aOffset)</PRE>
<DL>
<DD>Derive and returns a color, which is based on an existing color.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>src</CODE> - The source color from which to derive the new color.<DD><CODE>hOffset</CODE> - The hue offset used for derivation.<DD><CODE>sOffset</CODE> - The saturation offset used for derivation.<DD><CODE>bOffset</CODE> - The brightness offset used for derivation.<DD><CODE>aOffset</CODE> - The alpha offset used for derivation. Between 0...255
<DT><B>Returns:</B><DD>The derived color.</DL>
</DD>
</DL>
<HR>

<A NAME="decodeColor(java.awt.Color, java.awt.Color, float)"><!-- --></A><H3>
decodeColor</H3>
<PRE>
protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>decodeColor</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color1,
                                  <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color2,
                                  float&nbsp;midPoint)</PRE>
<DL>
<DD>Decodes and returns a color, which is derived from a offset between two
 other colors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>color1</CODE> - The first color<DD><CODE>color2</CODE> - The second color<DD><CODE>midPoint</CODE> - The offset between color 1 and color 2, a value of 0.0
                  is color 1 and 1.0 is color 2;
<DT><B>Returns:</B><DD>The derived color</DL>
</DD>
</DL>
<HR>

<A NAME="deriveARGB(java.awt.Color, java.awt.Color, float)"><!-- --></A><H3>
deriveARGB</H3>
<PRE>
public static int <B>deriveARGB</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color1,
                             <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color2,
                             float&nbsp;midPoint)</PRE>
<DL>
<DD>Derives the ARGB value for a color based on an offset between two other
 colors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>color1</CODE> - The first color<DD><CODE>color2</CODE> - The second color<DD><CODE>midPoint</CODE> - The offset between color 1 and color 2, a value of 0.0
                  is color 1 and 1.0 is color 2;
<DT><B>Returns:</B><DD>the ARGB value for a new color based on this derivation</DL>
</DD>
</DL>
<HR>

<A NAME="createGradient(float, float, float, float, float[], java.awt.Color[])"><!-- --></A><H3>
createGradient</H3>
<PRE>
protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/LinearGradientPaint.html?is-external=true" title="class or interface in java.awt">LinearGradientPaint</A> <B>createGradient</B>(float&nbsp;x1,
                                                   float&nbsp;y1,
                                                   float&nbsp;x2,
                                                   float&nbsp;y2,
                                                   float[]&nbsp;midpoints,
                                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>[]&nbsp;colors)</PRE>
<DL>
<DD>Given parameters for creating a LinearGradientPaint, this method will
 create and return a linear gradient paint. One primary purpose for this
 method is to avoid creating a LinearGradientPaint where the start and end
 points are equal. In such a case, the end y point is slightly increased
 to avoid the overlap.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x1</CODE> - <DD><CODE>y1</CODE> - <DD><CODE>x2</CODE> - <DD><CODE>y2</CODE> - <DD><CODE>midpoints</CODE> - <DD><CODE>colors</CODE> - 
<DT><B>Returns:</B><DD>a valid LinearGradientPaint. This method never returns null.</DL>
</DD>
</DL>
<HR>

<A NAME="createRadialGradient(float, float, float, float[], java.awt.Color[])"><!-- --></A><H3>
createRadialGradient</H3>
<PRE>
protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/RadialGradientPaint.html?is-external=true" title="class or interface in java.awt">RadialGradientPaint</A> <B>createRadialGradient</B>(float&nbsp;x,
                                                         float&nbsp;y,
                                                         float&nbsp;r,
                                                         float[]&nbsp;midpoints,
                                                         <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>[]&nbsp;colors)</PRE>
<DL>
<DD>Given parameters for creating a RadialGradientPaint, this method will
 create and return a radial gradient paint. One primary purpose for this
 method is to avoid creating a RadialGradientPaint where the radius is
 non-positive. In such a case, the radius is just slightly increased to
 avoid 0.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - <DD><CODE>y</CODE> - <DD><CODE>r</CODE> - <DD><CODE>midpoints</CODE> - <DD><CODE>colors</CODE> - 
<DT><B>Returns:</B><DD>a valid RadialGradientPaint. This method never returns null.</DL>
</DD>
</DL>
<HR>

<A NAME="createVerticalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)"><!-- --></A><H3>
createVerticalGradient</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> <B>createVerticalGradient</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                                       <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Creates a simple vertical gradient using the shape for bounds and the
 colors for top and bottom colors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the shape to use for bounds.<DD><CODE>colors</CODE> - the colors to use for the gradient.
<DT><B>Returns:</B><DD>the gradient.</DL>
</DD>
</DL>
<HR>

<A NAME="createVerticalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)"><!-- --></A><H3>
createVerticalGradient</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> <B>createVerticalGradient</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                                       <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Creates a simple vertical gradient using the shape for bounds and the
 colors for top, two middle, and bottom colors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the shape to use for bounds.<DD><CODE>colors</CODE> - the colors to use for the gradient.
<DT><B>Returns:</B><DD>the gradient.</DL>
</DD>
</DL>
<HR>

<A NAME="createHorizontalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)"><!-- --></A><H3>
createHorizontalGradient</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> <B>createHorizontalGradient</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                                         <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Creates a simple horizontal gradient using the shape for bounds and the
 colors for top and bottom colors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the shape to use for bounds.<DD><CODE>colors</CODE> - the colors to use for the gradient.
<DT><B>Returns:</B><DD>the gradient.</DL>
</DD>
</DL>
<HR>

<A NAME="createHorizontalGradient(java.awt.Shape, com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)"><!-- --></A><H3>
createHorizontalGradient</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> <B>createHorizontalGradient</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A>&nbsp;s,
                                         <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Creates a simple horizontal gradient using the shape for bounds and the
 colors for top, two middle, and bottom colors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the shape to use for bounds.<DD><CODE>colors</CODE> - the colors to use for the gradient.
<DT><B>Returns:</B><DD>the gradient.</DL>
</DD>
</DL>
<HR>

<A NAME="getComponentColor(javax.swing.JComponent, java.lang.String, java.awt.Color, float, float, int)"><!-- --></A><H3>
getComponentColor</H3>
<PRE>
protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>getComponentColor</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c,
                                        <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;property,
                                        <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;defaultColor,
                                        float&nbsp;saturationOffset,
                                        float&nbsp;brightnessOffset,
                                        int&nbsp;alphaOffset)</PRE>
<DL>
<DD>Get a color property from the given JComponent. First checks for a <code>
 getXXX()</code> method and if that fails checks for a client property
 with key <code>property</code>. If that still fails to return a Color
 then <code>defaultColor</code> is returned.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The component to get the color property from<DD><CODE>property</CODE> - The name of a bean style property or client
                          property<DD><CODE>defaultColor</CODE> - The color to return if no color was obtained
                          from the component.<DD><CODE>saturationOffset</CODE> - The offset for the saturation.<DD><CODE>brightnessOffset</CODE> - the offset for the brightness.<DD><CODE>alphaOffset</CODE> - the offset for alpha.
<DT><B>Returns:</B><DD>The color that was obtained from the component or defaultColor</DL>
</DD>
</DL>
<HR>

<A NAME="disable(java.awt.Color)"><!-- --></A><H3>
disable</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>disable</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color)</PRE>
<DL>
<DD>Returns a new color with the alpha of the old color cut in half.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>color</CODE> - the original color.
<DT><B>Returns:</B><DD>the new color.</DL>
</DD>
</DL>
<HR>

<A NAME="desaturate(java.awt.Color)"><!-- --></A><H3>
desaturate</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>desaturate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color)</PRE>
<DL>
<DD>Returns a new color with the saturation cut to one third the original,
 and the brightness moved one third closer to white.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>color</CODE> - the original color.
<DT><B>Returns:</B><DD>the new color.</DL>
</DD>
</DL>
<HR>

<A NAME="disable(com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)"><!-- --></A><H3>
disable</H3>
<PRE>
protected <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A> <B>disable</B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Returns a new TwoColors object with each color disabled using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(java.awt.Color)"><CODE>disable(Color)</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colors</CODE> - the original colors.
<DT><B>Returns:</B><DD>the new colors.</DL>
</DD>
</DL>
<HR>

<A NAME="desaturate(com.seaglasslookandfeel.painter.AbstractRegionPainter.TwoColors)"><!-- --></A><H3>
desaturate</H3>
<PRE>
protected <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A> <B>desaturate</B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.TwoColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.TwoColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Returns a new TwoColors object with each color desaturated using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(java.awt.Color)"><CODE>desaturate(Color)</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colors</CODE> - the original colors.
<DT><B>Returns:</B><DD>the new colors.</DL>
</DD>
</DL>
<HR>

<A NAME="disable(com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)"><!-- --></A><H3>
disable</H3>
<PRE>
protected <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A> <B>disable</B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Returns a new FourColors object with each color disabled using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#disable(java.awt.Color)"><CODE>disable(Color)</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colors</CODE> - the original colors.
<DT><B>Returns:</B><DD>the new colors.</DL>
</DD>
</DL>
<HR>

<A NAME="desaturate(com.seaglasslookandfeel.painter.AbstractRegionPainter.FourColors)"><!-- --></A><H3>
desaturate</H3>
<PRE>
protected <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A> <B>desaturate</B>(<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FourColors.html" title="class in com.seaglasslookandfeel.painter">AbstractRegionPainter.FourColors</A>&nbsp;colors)</PRE>
<DL>
<DD>Returns a new FourColors object with each color desaturated using
 <A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.html#desaturate(java.awt.Color)"><CODE>desaturate(Color)</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colors</CODE> - the original colors.
<DT><B>Returns:</B><DD>the new colors.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractRegionPainter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractCommonColorsPainter.CommonControlState.html" title="enum in com.seaglasslookandfeel.painter"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/seaglasslookandfeel/painter/AbstractRegionPainter.FocusType.html" title="enum in com.seaglasslookandfeel.painter"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/seaglasslookandfeel/painter/AbstractRegionPainter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractRegionPainter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright &#169; 2009-2012 <a href="http://seaglasslookandfeel.com">seaglasslookandfeel.com</a>. All Rights Reserved.
</BODY>
</HTML>
